const express = require("express");
const router = express.Router()
const {authMiddleware} = require('../middleware/admin/auth_middleware')

const CommentController = require('../controller/comments')


router.post('/:slug/comment',authMiddleware,CommentController.addComment) //添加评论
router.get('/:slug/comments',authMiddleware,CommentController.getComments) //获取评论
router.delete('/:slug/:id/comment',authMiddleware,CommentController.deleteComment) //删除评论

module.exports = router
